package com.csce.domain.entity.score.vo;

import com.csce.domain.entity.score.ScoreExExamMark;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.doudou.core.date.DateUtil;
import com.osce.common.annotation.Excel;
import com.osce.common.core.entity.BaseEntity;
import lombok.*;

import java.util.Date;
import java.util.List;

/**
 * 管理对象 score_score_dto
 *
 * @author zzx
 * @since 2023-08-16
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@ToString
@EqualsAndHashCode(callSuper = true)
public class ScoreScoreVo extends BaseEntity {

    private Long allotId;

    private Long sessionId;

    private Long userId;
    @Excel(name = "学员",needMerge = true)
    private String nickName;

    @Excel(name = "考试代号",needMerge = true)
    private String code;
    private Long sheetId;
    @Excel(name = "评分表",needMerge = true)
    private String sheetName;

    private Double total;

    @Excel(name = "预排开始时间", dateFormat = DateUtil.HHmmss,needMerge = true)
    @JsonFormat(pattern = DateUtil.HHmmss)
    private Date startTime;

    @Excel(name = "预排结束时间", dateFormat = DateUtil.HHmmss,needMerge = true)
    @JsonFormat(pattern = DateUtil.HHmmss)
    private Date endTime;

    //@Excel(name = "打分时间", dateFormat = DateUtil.yyyyMMdd_HHmmss)
    @JsonFormat(pattern = DateUtil.yyyyMMdd_HHmmss)
    private Date scoreDate;

    @Excel(name = "分数")
    private List<ScoreExExamMark> markList;
}
